package Eclass;

import validationInput.ValidateInput;

public class ClassModel {
	private Integer classId;
	private String className;
    private Integer noOfQuestion;
    
	public Integer getClassId() {
		return classId;
	}
	public void setClassId(Integer classId) {
		this.classId = classId;
	}
	public String getClassName() {
		return className;
	}
	public void setClassName(String className) {
		this.className = className;
	}
	public Integer getNoOfQuestion() {
		return noOfQuestion;
	}
	public void setNoOfQuestion(Integer noOfQuestion) {
		this.noOfQuestion = noOfQuestion;
	}
	
	@Override
	public String toString() {
		String s = "**Class Model\n";
		s+= "Class ID = " + classId;
		s+= "Class Name = " + className;
		s+= "noOfQuestion = " + noOfQuestion;
		s+="\n";
		return s;
	}
	
	public void validateModel(){
		ValidateInput vi = new ValidateInput();
		className = vi.getFixInputStr(className);
	}
	
}
